package com.xiyounet.login.controller;

import com.xiyounet.login.service.UserService;
import com.xiyounet.login.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StatusController {
    @Autowired
    private UserService userService;
    @PostMapping("/changeStatus")
    public Result changeStatus(@RequestParam Integer sta){
        return userService.changeStatus(sta);
    }
}
